Optimal. Leaf size=39 \[ 2 a \tan ^{-1}\left (\sqrt{x-1} \sqrt{x+1}\right )-\frac{\sqrt{x-1} \sqrt{x+1}}{x} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.115625, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.139 \[ 2 a \tan ^{-1}\left (\sqrt{x-1} \sqrt{x+1}\right )-\frac{\sqrt{x-1} \sqrt{x+1}}{x} \]
Antiderivative was successfully verified.
[In] Int[(a^2*x^2 - (1 - a*x)^2)/(Sqrt[-1 + x]*x^2*Sqrt[1 + x]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 13.2261, size = 32, normalized size = 0.82 \[ 2 a \operatorname{atan}{\left (\sqrt{x - 1} \sqrt{x + 1} \right )} - \frac{\sqrt{x - 1} \sqrt{x + 1}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((a**2*x**2-(-a*x+1)**2)/x**2/(-1+x)**(1/2)/(1+x)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0268408, size = 39, normalized size = 1. \[ -2 a \tan ^{-1}\left (\frac{1}{\sqrt{x-1} \sqrt{x+1}}\right )-\frac{\sqrt{x-1} \sqrt{x+1}}{x} \]
Antiderivative was successfully verified.
[In] Integrate[(a^2*x^2 - (1 - a*x)^2)/(Sqrt[-1 + x]*x^2*Sqrt[1 + x]),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.006, size = 44, normalized size = 1.1 \[{\frac{1}{x} \left ( -2\,a\arctan \left ({\frac{1}{\sqrt{{x}^{2}-1}}} \right ) x-\sqrt{{x}^{2}-1} \right ) \sqrt{-1+x}\sqrt{1+x}{\frac{1}{\sqrt{{x}^{2}-1}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((a^2*x^2-(-a*x+1)^2)/x^2/(-1+x)^(1/2)/(1+x)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.48854, size = 28, normalized size = 0.72 \[ -2 \, a \arcsin \left (\frac{1}{{\left | x \right |}}\right ) - \frac{\sqrt{x^{2} - 1}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a^2*x^2 - (a*x - 1)^2)/(sqrt(x + 1)*sqrt(x - 1)*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.231873, size = 82, normalized size = 2.1 \[ \frac{4 \,{\left (a \sqrt{x + 1} \sqrt{x - 1} x - a x^{2}\right )} \arctan \left (\sqrt{x + 1} \sqrt{x - 1} - x\right ) + 1}{\sqrt{x + 1} \sqrt{x - 1} x - x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a^2*x^2 - (a*x - 1)^2)/(sqrt(x + 1)*sqrt(x - 1)*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{2 a x - 1}{x^{2} \sqrt{x - 1} \sqrt{x + 1}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a**2*x**2-(-a*x+1)**2)/x**2/(-1+x)**(1/2)/(1+x)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.216578, size = 58, normalized size = 1.49 \[ -4 \, a \arctan \left (\frac{1}{2} \,{\left (\sqrt{x + 1} - \sqrt{x - 1}\right )}^{2}\right ) - \frac{8}{{\left (\sqrt{x + 1} - \sqrt{x - 1}\right )}^{4} + 4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a^2*x^2 - (a*x - 1)^2)/(sqrt(x + 1)*sqrt(x - 1)*x^2),x, algorithm="giac")
[Out]